namespace CodeConsult.Nordic.nRF8001.ApplicationControlInterface.Commands.SystemCommands
{
    public class CloseRemotePipeCommand : AciCommandBase
    {
        public const byte OpCode = 0x1F;

        public byte ServicePipeNumber { get; set; }

        protected override void EncodeBuffer()
        {
            EncodeBufferWithCommandHeader(OpCode, 1);
            EncodeHelper.SetByte(ServicePipeNumber);
        }
    }
}
